#!/user/bin/env python3
# -*- coding: utf-8 -*-
from base.base_page import BasePage
#搜索页面对象
class SearchPage(BasePage):
    url = 'https://www.baidu.com/'
    el_input=('xpath','//*[@id="kw"]')#输入框
    el_button=('xpath','//*[@id="su"]')#确定

    def search(self,txt):
        self.open(self.url)
        self.input(*self.el_input,txt=txt)
        self.click(*self.el_button)







